<h1>Editing category</h1>

<%= error_messages_for :category %>

<% form_for(@category) do |f| %>
  <%= render :partial => 'form',:locals=>{:f=>f} %>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>


<%= link_to 'Back', categories_path %>

<%= link_to '删除此分类', category_path(@category), :confirm => 'Are you sure?', :method => :delete %>
